<?php

namespace Modules\WeChat\Http\Controllers;

use HiCommon\Service\AdminUserService;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Request;

class AdminUserController extends Controller
{

    /**
     * 用户信息
     *
     * @return array
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function user_info()
    {
        try {
            $n_uid = wechat_user_id();
            $res = AdminUserService::api_admin_user_info($n_uid);
            return $res;
        } catch (\Exception $exception) {
            return hello_error('失败', [], $exception->getMessage());
        }

    }

}
